#define _CRT_SECURE_NO_WARNINGS 1

#include"Queue.h"


void Test1()
{
	Queue qlist;
	QueueInit(&qlist);
	QueuePush(&qlist, 2);
	QueuePush(&qlist, 4);
	QueuePush(&qlist, 7);
	QueuePush(&qlist, 8);
	while (!QueueEmpty(&qlist))
	{
		printf("%d ", QueueFront(&qlist));  //2  4  7  8
		//printf("%d ", QueueBack(&qlist));  // 8  8  8  8
		QueuePop(&qlist);
	}
	printf("\n");
}

int main()
{
	Test1();
	return 0;
}